package com.xingu.xg.common.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xingu.xg.mapper.pojo.TreeMenuDo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

@Builder
@Data
public class TreeMenuVo {


    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "当前节点ID")
    private Long id;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "父级节点ID")
    private Long parentId;

    @ApiModelProperty(value = "节点描述")
    private String description;

    @ApiModelProperty(value = "该节点的所有一级子节点")
    List<TreeMenuDo> treeMenuDos;
}
